<?php include template("header");?>

<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="credit">
	<div class="dashboard" id="dashboard">
		<ul><?php echo current_account('/meus_pontos'); ?></ul>
	</div>
    <div id="content">
		<div class="box clear">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head">
                    <h2>Total de pontos</h2>
                    <ul class="filter">
						<li class="label"></li>
						<?php echo current_credit_index('score'); ?>
					</ul>
                </div>
                <div class="sect">
					<h3 class="credit-title">Total: <strong><?php echo moneyit2($login_user['score']); ?></strong></h3>
					<table id="order-list" cellspacing="0" cellpadding="0" border="0" class="coupons-table">
						<tr><th width="120">Tempo</th><th width="auto">Detalhe</th><th width="50">D / C</th><th width="70">Pontos</th></tr>
						<?php if(is_array($credits)){foreach($credits AS $index=>$one) { ?>
						<tr <?php echo $index%2?'':'class="alt"'; ?>><td style="text-align:left;"><?php echo date('d-m-Y H:i', $one['create_time']); ?></td><td><?php echo ZCredit::Explain($one); ?></td><td class="<?php echo $one['direction']; ?>"><?php echo $one['score']>0?'credito':'debito'; ?></td><td><?php echo moneyit2($one['score']); ?></td></tr>
						<?php }}?>
						<tr><td colspan="4"><?php echo $pagestring; ?></td></tr>
                    </table>
				</div>
            </div>
            <div class="box-bottom"></div>
        </div>
    </div>
    <div id="sidebar">
		<?php include template("block_side_credit");?>
		<?php include template("block_side_credittip");?>
    </div>
</div>

</div> <!-- bd end -->
</div> <!-- bdw end -->

<?php include template("footer");?>
